package com.timothy.statistics;

import java.util.ArrayList;
import java.util.List;

import com.timothy.answer.BaseAnswer;
import com.timothy.answer.ChoiceResult;
import com.timothy.service.MessageSenderUtil;

public class ButtonStatistics extends BaseAnswer {
	private String displayStyle;
	private int slide;
	private int total;
	
	private Integer answerTextStyle;
	
	private List<ChoiceResult> choiceResults = new ArrayList<ChoiceResult>();
	
	public ButtonStatistics() {

	}
	
	public String getDisplayStyle() {
		return displayStyle;
	}

	public void setDisplayStyle(String displayStyle) {
		this.displayStyle = displayStyle;
	}


	public int getSlide() {
		return slide;
	}

	public void setSlide(int slide) {
		this.slide = slide;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<ChoiceResult> getChoiceResults() {
		return choiceResults;
	}

	public void setChoiceResults(List<ChoiceResult> choiceResults) {
		this.choiceResults = choiceResults;
	}

	@Override
	public String toMessage() {
		int slide = getQuestion().getSlideIndex();
		return String.format( MessageSenderUtil.Single_Select_Answer, slide, getAnswerContent());
	}

	@Override
	public String getAnswerContent() {
		// TODO Auto-generated method stub
		return null;
	}

	public Integer getAnswerTextStyle() {
		return answerTextStyle;
	}

	public void setAnswerTextStyle(Integer answerTextStyle) {
		this.answerTextStyle = answerTextStyle;
	}
	
	
}
